/**
 * 
 */
package com.hydra.designpattern.singleton;

/**
 * @Created on 2013-4-3
 * @Title:单例
 * @Description:
 * @author:黄海军
 */
public class Singleton {

	private static Singleton s;

	// private static Singleton s = new Singleton();

	private Singleton() {
	}

	public static Singleton getInstance() {
		if (s == null) {
			s = new Singleton();
		}
		return s;
	}
}
